#pragma once

#define  KTV_FIRE_ALARM_FILENAME   _T("FIREALARM.DAT")

struct KtvFireAlarmNode
{
	WORD   wType;
	BYTE   mac[6];
};


class CKtvFireAlarm
{
public:
	CKtvFireAlarm(void);
	~CKtvFireAlarm(void);

protected:

	vector<KtvFireAlarmNode*> m_vecNode;

public:
	BOOL  IsFireAlarm(BYTE* mac);

	BOOL  Load( LPCTSTR lpszFilePath );

	BOOL  Save( LPCTSTR lpszFilePath );

	int   Add(BYTE* mac);

	void  Clear(void);

	BOOL  IsEmpty(void);

	DWORD GetCount(void);

	BOOL  GetAt(DWORD dwIndex, BYTE* mac);

	void  Remove(BYTE*mac);

};
